class DialogManager:
    def __init__(self):
        self.context = []

    def update_context(self, user_input, bot_response):
        self.context.append({'user': user_input, 'bot': bot_response})

    def get_context(self):
        return self.context

    def clear_context(self):
        self.context = [] 